Xbasic
WAITDIALOG.CANCEL_CANCEL Function
Syntax
Cancel_Cancel as V()
.CANCEL_CANCEL( Flag as L )
Arguments
- Flag
.F. = Indicates that the Cancel button request was cancelled.
Description
The .CANCEL_CANCEL() method cancels the Cancel button request made by a user.
Example
dim colors as C dim x as waitdialog dim i as N dim count as N colors = a5.Color_Enum() x.Create(3,"percent") x.AllowCancel(.t.) i = 0 count = line_count(colors) for each c in colors i = i + 1 x.set_percent(i,count) x.set_bottom_message(c.value) y = x.user_canceled() if x.user_canceled()then q = ui_msg_box("Notice","Are you sure?",UI_YES_NO_CANCEL) if q = ui_yes_selected then goto next2 else x.Cancel_Cancel() end if end if next next2: x.close()
Limitations
Desktop applications only.
See Also